package com.yby.dome7;

/**
 * 餐厅类
 */
public class Restaurant {
    Customer customer;//顾客对象
    //创建一个方法，来表达餐厅传达顾客和厨师的信息
     public void  order(){
         System.out.println("一份"+customer.orders);
         //父类餐厅可以访问子类厨师
         Cook cook = new Cook();
         cook.work();
    }

}
